<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
	<f:metadata>
	    <f:viewParam name="id" value="#{corkitBean.idVersao}" />
	</f:metadata>
	
<h:head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

		<h:outputStylesheet library="css" name="style_aplicacao.css" />
		
		<h:outputScript library="js" name="aplicacao.js" />
		
</h:head>
	<body>

		<div id="topo">
			<div id="logo_kioskcar"></div>
		</div>

		<div id="corpo">

            <div id="area_texto">Selecione cor e kit desejados</div>

			<div id="area_corkit">

				<h:form id="form">
					
					<input type="hidden" name="idVersao" id="idVersao" value="#{corkitBean.idVersao}" />
					
					<p:panel header="Cores">  
							
						<ui:repeat value="#{corkitBean.cores}" var="c" >
							
							<div>
								<label><input type="radio" name="cor" value="#{c.idCor}" checked="#{c.checked}" /><h:outputText value="#{c.nomeCor}" /></label>
							</div>
							
						</ui:repeat>

					</p:panel>
					
					 <p:panel header="Kits">  
					 
							<ui:repeat value="#{corkitBean.kits}" var="c" >
								
								<div>
									<label><input type="radio" name="kit" value="#{c.idKit}" checked="#{c.checked}" /><h:outputText value="#{c.nomeKit}" /></label>
								</div>
								
							</ui:repeat>
					
					</p:panel>

					<div onclick="redirecionaFinalizaCarro();" id="bntContinuar">Continuar</div>

				</h:form>

			</div>

		</div>
	</body>
</html>